package jvm.metaspace;

import java.io.Serializable;
import java.util.Comparator;

/**
 * @Author: ideaAdmin
 * TODO: Class
 * TODO: 编写类 查看其字节码中的类型信息
 * Date: 2022/2/23:13:52
 * Description:
 */

public class MethodAreaTest extends Object implements Serializable, Comparable<String> {
    //属性
    public int num = 10;
    private static  String name="测试方法的内部结构";

    //构造器

    public void test1(){
        int count = 20;
        System.out.println("conut=" + count);
    }

    public static void test2(){
        int result =0;
        try {
            int value = 20;
            result = value/result;
        } catch (Exception e){
            e.printStackTrace();
        }finally {

        }
    }


    @Override
    public int compareTo(String o) {
        return 0;
    }
}
